<template>
  <div>
    <h3>子类组件 --> {{counterStore.count}}  <button @click="counterStore.subCount">-</button></h3>
  </div>
</template>
<script setup>
import {userCounterStore} from "@/store";
const counterStore = new userCounterStore()

</script>
<style scoped lang="less">

</style>
